add image attributes