Tweaked regexp to not capture preceeding slash for image refs