libpng access violation issue resolved