improved regex for parsing images in post