adding image scaling feature