update ImageProcess, apart test methods and fix bugs