add support for mask images

Very simple trick to create more awesome images using masks. Still hacky. Code needs cleanup anyhow :-/