Tried another version of image scaling