changing code snippet to image of code