Image::flipVertically(), Image::flipHorizontally() optimizations.