make "imageHash" async, add sync function

closes #7