refactoring: function to build path to images and font