changing to libpng
mac fixes