If the non default icon is in a view we need to pass the viewid to the thumb.php file so we can check that as well.
So now:
thumb.php?type=profileiconbyid&maxwidth=150&id=5 will fail if '5' is a profile icon that is not default
but
thumb.php?type=profileiconbyid&maxwidth=150&id=5&view=2 will pass if that icon is in a view one can see
If the non default icon is in a view we need to pass the viewid to the thumb.php file so we can check that as well.
So now:
thumb.php? type=profileico nbyid&maxwidth= 150&id= 5 will fail if '5' is a profile icon that is not default
but
thumb.php? type=profileico nbyid&maxwidth= 150&id= 5&view= 2 will pass if that icon is in a view one can see