fix thumbnail scaling.