Set width and height in formatter