resizing images in markdown in public and admin section