Implemented RecordImage serialization.