auto expand images and links