support for no images and submitting the first image