def image_exists(self, image_name, image_tag):
        """ Returns if the image exists locally.
        """
        try:
            self.get_image(image_name, image_tag)
            return True
        except docker.errors.ImageNotFound:
            return False
Returns if the image exists locally.