Update megapix-image.js

It seems like detectVerticalSquash is setting a non-1 ratio on png files, when it should probably leave them at 1. Gif files may also have this problem, but I did not test.