Add Gallery.formats to cover JSON serialization