Fixed error with figure being drawn above chapter header.