Let leave this as it is for now, but I'm sure we could come up with a better approach. This object belongs to the Gallery app, so we would ideally have a reference to that somehow without passing it in here.