Refactor method for accessing profile pictures