build png out of array of numbers