Common algorithms for image recognition