Added image scaling