Add support for custom rendering of elements