Set window size of pgl to exact image size.
Window size of pgl was fixed before, irrelavent to the rendered PIL image size, and thus lead to distortion. What is more, resizing PIL image to fit window size relies on interpolation, which leads to poor rendering quality. Here we let the window size to be same as the rendered PIL image size to avoid distortion and resizing.