Have a look in the groups plugin.
Because the user can upload a group picture the plugin must display it instead of the user image. That is what you want assume.
Look how the group plugin handles the custom image and make it in your plugin... view reply
Sorry, for answering so late Steve.
Yes, I did all updates between 1.8 and 1.11
Yesterday I found the reason for the login problem.
It was the a corrupted elgg_system_log table: [SQLSTATE[HY000]: General error: 145 Table
After deleting all... view reply