change in png_from_table method

Modified the method to work with arrays
I don't see why it should be in "public/" as a default, since it doesn't need to be a public file