I fixed it.
I tryed today to upload the same photo and, as always since two weeks, got the Bad Gateway error. I tried to upload a different photo and, strangely, it worked. After that I could upload the first photo thats been giving me the 502 error.
So I don't know what caused the error, but uploading another photo first seemed to have done the trick.