adding image scaling