fixed bug in resize2.py with minmalistic mode