Calculation proof for scaling images, with a quadratic destination image and different sized source images.