code: def get_template_data(self, request, *args, **kwargs):
          '''Add image dimensions'''
  
          # little tricky with vertical centering
          dimension = int(self.get_size().split('x')[0])
  
          data = {}
  
          if dimension <= 356:
              data['image_dimension'] = "row-md-13"
  
          if self.get_template_name().name.split("/")[-1] == "directories.html":
              data['directories'] = self.get_directories(request)
  
          return datf get_template_data(self, request, *args, **kwargs):
          '''Add image dimensions'''
  
          # little tricky with vertical centering
          dimension = int(self.get_size().split('x')[0])
  
          data = {}
  
          if dimension <= 356:
              data['image_dimension'] = "row-md-13"
  
          if self.get_template_name().name.split("/")[-1] == "directories.html":
              data['directories'] = self.get_directories(request)
  
          return data
docs: Add image dimensions