fixed the upload if only the image is present