added image rectification