call prepare automatically if resampler's parameter changed.

TODO: set a flag to enable/disable auto prepare. also for ImageConverter