add write png back
Get write png back; Merge branch 'cb' into cb-ext