Added code for pixel format conversion

Immediately copied from
http://www.codeproject.com/Articles/66550/Image-Per-Pixel-Enumeration-Pixel-Format-Conversio
Incorporated pixel format conversion in Graphics