Given the security problems MSFT has had in the jpeg processing DLL, this is indeed a feature.
Here's one MSFT advisory/patch. There are other, similar problems and newer exploits.
http://www.microsoft.com/technet/security/bulletin/MS04-028.mspx