MVC: More separation between the Model and the View

Moved image management methods out of the KPGalleryViewController and
into their own KPImageManager class to better comply with the MVC
pattern.