rescale image if width or height is specified in ImageWidget
remove global variable Image
remove more global variables
add rotate method for ImageWidget
Merge pull request #797 from chrox/master

rescale image if width or height is specified in ImageWidget