How to get BuddyPress avatar by user ID outside of BuddyPress

I have a script that's part of my WordPress install where I need to get the avatar of a BuddyPress user. BuddyPress isn't active in this part of my install (programatically turned off) so I cannot use the core BuddyPress functions for retrieving the image. Anyone know where I can get this?