user image nil check added