Change picture (crop) image source
I managed to reference all user photo to external resource (s3), by putting userPhoto & userPhotoUrl function on a plugin (thanks to this https://open.vanillaforums.com/discussion/33180/i-need-to-reference-external-avatar-source-please-help). Profile avatar & discussion avatar are all referencing external however the change picture page (image to be crop & thumbnail view) are still referencing image source from local uploads folder not the external (s3) configured on userPhoto & userPhotoUrl function.
BTW, uploading using the image crop are going to external s3 bucket, that's part is done. The challenge is the image crop & thumbnail view referencing local "/uploads" folder which is being wipe out every time we deploy code, we persist images on s3 bucket.
I tried looking for profile/picture.php file to overwrite but no luck.