Fixed html output of figures