issue 41 adjust machine size match with image ratio.