refactoring ImageDetailViewController