changes for image upload