Added boolean drawPNG to only write PNG output figures when asked. This is relevant when updating the tex file