Fixing issue #43 - Uploaded images sometimes rotated and half black. Replacing image upload code with megapix-image & exif libraries