handled correctly the image upload and display