Strip trailing whitespace.
Add pygments and use two columns for the images and code.