added functionality of adding image during edit