Its the contest holder who purchases any third-party elements, including stock art. They need to own the licenses so they can avoid possible licensing issues.
While submitting your design, you need to:
clearly tell the contest holder which images are stock art.
always use the watermarked versions of images in your design.