moving the link to the picture outside code block