fixed the image thing on my machine, also changed to have a flash message on unsuccessful profile update