Is the size of the image even, or odd?
If odd, you may see some weird things when using automidhandle, since it will try to draw things at a half-pixel boundary
If odd, you may see some weird things when using automidhandle, since it will try to draw things at a half-pixel boundary