Algorithm based on the minimization of the linear distance between expected color and actual one. Original image is a section of https://en.wikipedia.org/wiki/File:Leonhard_Euler_-_edit1.jpg. Works poorly with images exhibiting large dark areas and large swaths of similar colors (like this one).