Fixed equation cache bug when modified images are saved with an
alternative file name.