IMB_transform code was not properly doing mapping between pixel and
texel space. This caused for example bilinear with 0.5 scale
not properly averaging each 2x2 source image pixel, but rather just
picking one out of 2x2 source pixels. The subsampling case setup
code had a sign error too.