Fix images throwing warnings in libpng.