Extension to tpt.screenshot

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