ensure we don't overflow width on huge images
review
Merge pull request #8 from ScottDowne/t1691

ensure we don't overflow width on huge images