Fix image scaling.