correction of a loophole that let empty image upload

"save image" buttom appear only after the image is selected, this is to
avoid uploading an empty file