Update gravatar-profile.php

Remove undefined variable errors
Update image-widget.php

Remove undefined variable errors
Merge pull request #1017 from BinaryMoon/master

Remove undefined variable errors