decouple png baking code from rest of lab, make it optional.