add width and height in context and use them