Added better error handling to loadImg.
Added new version of libpng to wiz data.