Use phpbb_get_user_avatar()
Reduce edge detection to within 50 pixels