Tweak to bag2png.