Store Profile Pics in Profile

With our image uploads now working, all will work as expected until you close your browser, but at that point the reference between your user profile and your profile picture will be lost. To fix this, you will leverage a Cognito User Pools user attribute called picture to persist the S3 object key so the same image can be loaded upon each login and persisted to be shown to the unicorns when you request a ride. You will need to update /website/src/pages/Profile.js and a method called onImageLoad to make this possible.

High-Level Instructions

Implement a method to persist the images uploaded to the current user’s Cognito picture attribute each time the image is changed.

Step-by-step instructions (expand for details)