Support for images and primitives