Submitted image is not being shown properly