Removed  rename button, added permission, changed various code in ImageViewerFragment.java