fix minor compiler warnings
add formats module with png generation for labels
add png output