Random upload fail fix

We suspect this was because we were trying to convert to png AND resize in each version, which may have been causing some confusion. We now convert the original file and then resize. Multiple tests seem to confirm that it is, indeed, fixed.

Fixes #131