add test using invalid png which leaks fd when it throws - refs #1783