started implementing first version of picture analysis