updated changes to the Image class for image upload support