You can easily mirror (flip) an image horizontally like this:

 img.SetScale( -1,1 );

and vertically like this:

 img.SetScale( 1,-1 );