Fix handling of already uploaded images.

Use the correct image name including the appropriate suffix everywhere.
Merge pull request #2 from bhagemeier/master

Fix handling of already uploaded images.