Refactors:
- moved logic out of controller to services
- use of directive for manipulating the dom when loading / navigating images