Store references as pngs and write failures to separate png files.