added resample functions; created bitmap from user writing and template points and compare bytes to find how close the 2 bitmaps are (api needs some tune-up)