Extend tpt.screenshot to return created filename and optionally, PPM format.