added in-line image conditional