fix for profile_image

Hello,

I wasn't able to create new users on fresh installed Flyspray. So i fixed it and here is the fix.

Also there are two problems, one is the profile image, which wasn't added to all function calls.

Second problem is, that fields oauth_uid and oauth_provider are in database created as NOT NULL, but upon creation the system puts nulls in the columns.