Being to optimise in cython
Further optimisation to bilinear sampling
Attempt to optimise grey conversion