fixed video image attr issues
format code