Additions to find head and tail of larvae
Todays work. Includes buggy ROI_PADDING which needs to be urgently
fixed.