split misc/imagetools.py