Correct image scaling