Returns main image for given model

def get_main_for(self, model):
        '''
        Returns main image for given model
        '''        
        try:
            return self.for_model(model).get(is_main=True)
        except models.ObjectDoesNotExist:
            return None