fix NaN error when draw the image

http://osc.matsukei.net/issues/450 fixes #450
Merge branch 'master' of https://github.com/thinreports/thinreports-editor
remove the unnecessary processing of the layout file when save

http://osc.matsukei.net/issues/451 fixes #451