Added feature extraction code for tip/non-tip images