Bug fix for erl_img

Evan, we're trying to contribute any small changes that Concurix has made to open source projects.  Please let us know if there's a better means than a pull request.

This change fixes an apparent bug where image_png:scan_info would return the result of zlib:close instead of the actual information read from the file.