There are tricks to it, but generally they are tricky with OTFBM unless there is a solid grid already on the map, which means you can count the dimensions, edit the image's size so it is 40 x (grid width) wide and 40 x (grid high) and then it fits really well as the default pixel per inch scale is 40