Fix the bug that image used the width size to scale the height