This is the code I use for creating images for my blog.