Internal
Flips an image buffer and returns the resulting buffer.
The image buffer to use.
Optional
If true, flip vertically instead of horizontally.
Flips an image buffer and returns the resulting buffer.