https://android.googlesource.com/platform/packages/apps/Gallery2