change in png_from_table method

Modified the method to work with arrays
This is wrong, you're moving the configuration, hard coded, to the gem itself. Also you're making any configuration outside the gem irrelevant. It would be less bad if you do it ONLY if the config is not done outside.