break get_pillow_by_name out into separate function