pub fn compile(stmts: Vec<Statement>) -> Result<Image>
Compiles a collection of statements into an image ready for execution.