modules: implement convert_buffer() in the high contrast display filter