Wordpress gallery support and bug fixes