added split_imext to ccdredux.py