add photo viewer

Photo view support added as well as retain cycle removed from
ApplicationController.