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.