Possible fix for the coordinate problem between imagerecorder
and canvasrenderer. Should be tested more, however.