Fix circular re-encoding of picture on profile edit