Added image upload functionality