pre-processing complete

added the preprocessing function to use in main. it works on any jpg
image