def set_matrix_dimensions(self, *args):
        """
        Subclassed to delete the cached image when matrix dimensions
        are changed.
        """
        self._image = None
        super(FileImage, self).set_matrix_dimensions(*args)