fix for mac: use cairo for png