Added image scaling.