Added image upload manipulation