Draft: metadata: Add _as_bytes
GExiv2's API is a bit weird. You load data from an image and write it to another image. _as_bytes replicates this by accepting a GBytes input parameter which should contain an image. It is also posisble to pass NULL, then the internal image will be used.