Fix image resize scale issue