Added existence check in image_upload