There was a thread a couple of years ago where someone was wondering the same thing. I ended up finding a MS whitepaper showing hot to get to various file properties, which would allow you to get to the image, and the OP returned with his complete code (VB):
thread149-1019249
-dave