fix issue reported https://wso2.org/jira/browse/ESBJAVA-3200

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