apply width and height directly to image