Fix image scaling issue