practice of creating picture viewer on iOS