Fix user profile picture upload

Upload of user profile picture doesn’t work: it fails both at registration as well as later from https://gitopia.com/[account_name]
I tried with both JPG and PNG images of ~120KB.