I've been looking for the correct way to do this for a while. The method outlined here works somewhat (using the fix in the comments) but the colors are actually converted incorrectly. I've been wondering if a method using WinCodec would be better, as well.