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
Merge pull request #31 from dushansachinda/master

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