Abstracts the code rendering posts' featured or first image.