fixed problem with editing/adding image