BUG: fix wrong usage of os.path.normpath

It is probably a typo
Merge pull request #144 from ksurya/img-upload

BUG: fix wrong usage of os.path.normpath