Added some error checking for lack of profile images