switch all images to class based views