if link is image, showing preview