Finish implementation of image sampling
Merge pull request #25 from ccgn/master

Finish implementation of image sampling