Rewritten CRC utility for PNG