Fixed bug with integer overflow on the scale when using large images (>=4096 on a side).
Merge pull request #3 from jpswensen/integer_overflow

Fixed bug with integer overflow on the scale when using large images (>=...