adding algorithm as an image