replacing algorithm code with image