Fixed invalid IDAT crc32 generation

This patch did not fix the problem with Firefox not displaying the image though.