issue #21: image loaded when page load, need code for rotate and save image