Implemented auto image scaling in offline renderer.