Image scaling, bug fix.