change to the image upload functionality