adding image functionality