tools and algorithms for analysing images