added scale width and height