added more general 2d patch scaling