What operating system are you using?
Edit: Never mind, I found the issue; I was unwittingly using CLSID_WICImagingFactory2, which was introduced Windows 8. I only needed CLSID_WICImagingFactory1, which is available in XP SP2. I've rebuilt the image program and attached it to this post.