Using the get_icon_dir() function to make the code more concise and remove some extra intent.