Added a region_width variable to change the amount of background fit