defined view_where function for image controller
created route for image/view_where function