Reduced out-of-memory errors when browsing images

Switching to the FragmentStatePager allows old Fragments to be removed from the memory.

Now we need to switch the thumbnail views to a RecyclerView and we might get rid of nearly all out-of-memory errors.