python scripts to deal with images