When the image file size is square and larger than maxWidth or maxHeight, the thumbnail preview will get wrong position.
Add the square image judgment will fix this bug.
Refer to BUG #36 and fix it.
Coverage decreased (-1.4%) to 97.857% when pulling c05da3da048c01cdb78c0b23dbf1387532f51b42 on luoch:master into f01d1c2071df3f725ff448d0d48761e0410b7476 on andrefarzat:master.
When the image file size is square and larger than maxWidth or maxHeight, the thumbnail preview will get wrong position. Add the square image judgment will fix this bug. Refer to BUG #36 and fix it.