Okay that was a bunch of edge cases

Images, references, stuff in parens.