SPIP ported to painting layer