pub async fn execute_and_snapshot( code: &str, current_file: Option<PathBuf>, ) -> Result<DynamicImage, ExecError>
Executes a kcl program and takes a snapshot of the result. This returns the bytes of the snapshot.