Added jpeg extension in getImageType

If an upload would occur and the extension was jpeg, which is valid,
nothing would occur as it could not recognize the image type.
Merge pull request #1 from GiancarloGomez/master

Added jpeg extension in getImageType