add option to use Cairo to create PNG file