paint message protocol