Update loadpng.cpp