Improved painting performance without affecting rendering
Set version to 6