FastScaling: fix grayscale and color shearing bug; add regression test for that and border blurring.