IMPSAC: Synthesis of Importance Sampling and Random Sample Consensus