improve image generation

* fix issue with one pixel line missing around the edge
* print progress
* patch by in3otd