patch for gallery media service