UI Script: Modify rescale function. Now: image also rescaled.