Generate an image from a table