We present a general method of designing optical devices based on optical conformal mapping and rescaling the optical path along a given bunch of rays. It provides devices with the same functionality as those based purely on conformal mapping, but enables to manipulate the refractive index to a great extent-for instance, eliminate superluminal regions of space as well as reduce the refractive index in other regions significantly. The method is illustrated in two examples, a waveguide coupler and a plasmonic bump cloak, and numerical simulations confirm its functionality.