you can use `res = getOption('tikzRasterResolution', NA)` and delete the three lines below