Add CRC32 calculation for headers and image payloads