fixed a but in find_distortion, added try/except statement in case a divide by zero error is raise, if so the distortion matrix is set to the identity matrix