The messages code generator 'messages.py' does not handle the templates properly. We just need to define the RefPtr<ImageData> as ImageDataReference. There is no need to treat its encoding/decoding as a special case. We just need to use ImageDataReference in the messages.in file.
<rdar://problem/71617337>
This has been removed.