Fix error on empty images in markdown