Library for generating images from an expression