add option to turn on search image function