add scalex and scaley for image tag