Adjust image dependencies in the `prepare` plugin.

An image must be reprocessed by `prepare` not only when
its source file is modified, but also when transformation
settings (in the corresponding `transform.ini` file) are chenged.