adding function to read additional data for images from markdown files