Fix image scaling