I found a website which can generate nice images for source code. It is Carbon

Here is an example: