Python command line tool for resizing images