add image attribute