Tidies up get_profile_thumbnail