MADS: Fix positioning and clipping of flipped scaled images