added scripts to append figcaption to images