Implementing image scaling when the device has a scaling factor