added image attribs support