resize image and add python-id tag