adding image to history