Added unwind-protects to with-transform and with-painter to assure proper exits
Fixed missing end and delete of QPainter instance
Switched to use WITH-PAINTER