get the pen drawing image size just right