Further debugged sampleImageConditionally().
Merge branch 'develop' of github.com:lucastheis/cmt into develop
Added missing flag.
Random generator is now only created once.
Skipped some unnecessary steps.
Minor change.