image scaling fix