Fixed figure dependencies when documentations is built under make all