modify buffer pixel format