some fixes for FireFox
add <figure> tags if caption chosen