Fixing image scaling.