Added logging for libpng