change getGalleryCachedDir to getCachedDir