Multires python script improvements

I have made several improvements to the python script to generate multires images which improve the usability. Please consider them for merging.