adding image upload functionality