Taking a step back and looking at the offside, it was technically correct given the facts presented at the time.
However it does beg a couple of questions.
Firstly, there are too many margins for error in the process.
At what point in time is the snapshot taken? Foot striking ball? Ball...