Refactored pixel painte, + sync