refactor nicothumb
add nicothumb test
Merge pull request #9 from aycabta/master

refactor and add test for nicothumb