changed tmp directory references as writing samples images to root, this has been due to the recent changes done in CARBON, where it deletes tmp file periodically