Added Upload image content type

Solved upload image problem extension and content type. It fixes the
url conversion problem.
Merge pull request #30 from fngr/Upload-image-fix

Extension and content type problems solved on uploads