Return chart Tempfile, option for other image formats