2nd Attempt at fix for python3 image upload