OK.
You have 500 internal server error while uploading photo, I believe these cases are connected in some way. Please resolve 500 error first and we'll see then.
But I still think that it is better to have a good fault tolerance is important.
Thanks!