Example code for generating images in Go