add width and height info to image target