Generate ticket image.