fixed handling of multidata png files

git-svn-id: http://ocamllibs.googlecode.com/svn/trunk@276 21970f9d-2756-cbab-44b1-85fcaa48d7c2