modified stretch patch scaling to factor in source rectangle