Added support for rotation

Added support for rotating pix's, also fixed a few potential GC issues
(was using IntPtr instead of HandleRef), and save not allowing choosing
the format based on the extension string.