Fixed image scaling bug.