adding image saving