custom block for linked images