Added image upload functionality.