Make sure pixel sizes are positive.
Merge pull request #199 from khogenso/devel

Make sure pixel sizes are positive.