ENH: add a puthon script for image compression