Fixed bug with uploading a single image.