fix list of images and sourcecode directives