a simple image processing tool in python