Add image processing code to calculate scores between images