Encodes the given `image` and writes the encoded data to the destination buffer `dst`.
source not stored for this graph (policy: none)