Better code for displaying the featured image in the UI