use imageProcessing.py for speed up