Fixed switchMaskBitmaps doesn't work with ResizeImage when DefaultMask is off.