Use metaclass to add images and links to blocks