Intermittent upload error fix

Had an issue where only some images displayed properly on Tumblr. This was a result of images not having a proper name when emailed. Fixed typo in line 181.