PNG export and centering of drawing square