Handle empty elements, and don't display empty tables, resize iamges to git on A4