Oh but this function is so similar to `gallery.get_metadata`, it would be better to reuse it with an additional parameter for the filename.