Refactored images views as class based views