added in new constrain code to fix burry images. Fixes #92
Merge pull request #93 from chance/master

added in new constrain code to fix burry images. Fixes #92