Debug thread, so memory dumps don't block animation
Tweak calculation for debug memory dump PNG size