Update megapix-image.js

resolve issue 17 (https://github.com/stomita/ios-imagefile-megapixel/issues/17)