Adds image upload functionality