added attributes to the image