adding image attribute