Added some logic to the profile picture picker partial.