fix snippet for insert images in markdown