update imageUtil, make it configurable.