1. move ImageAdapter out to its own class to that it can be shared between ViewPostActivity and CreatePostActivity
2. hide the gallery when there's no image to show