change in png_from_table method