Improved saving drawn images algorithm, now the saved images have Y-UP coordinates.