make icons work again
correctly cast buffer
add icon render test