Add classes used by Wordpress, and fix the caption alignment.