Fixed a nasty bug that distorted the image awfully on large proportion change (f.e. widescreen image to square thumb).