Bug fix

Change to work with other version of libpng