Fixed bug in FileImage caching, when matrix dimensions are changed

When a cached FileImage was first viewed using the default matrix
dimensions and then installed on a GeneratorSheet with different
dimensions, it would continue to present the cached image with
wrong dimensions.