helper function to always generate png and svg when ggsave