Quantum enhanced imaging of nonuniform refractive profiles