png packing put in function, use max_cores cpus #2

Merged
merged 6 commits into from Jan 16, 2013