title: ViewPager Fragments modifying UI
body: <p>Hey I'm using a ViewPager with Fragments.</p>
  
  <p>I'm attempting to modify the fragment's UI (such as remove images in imageviews to free up memory) when it's not visible, and re add images when its visible again.</p>
  
  <p>I'm unable to find the proper way of doing this, as i'm not sure how to access the my fragment's view from setUserVisibleHint. </p>
  
  <p>I've tried putting the view into a variable during onCreateView, but I get nullpointerexceptions for some odd reason.</p>
  
  <p>What would be the right way to do this?
  Or is there anyway i could destroy fragments when they're not in view?</p>