Pixelpainter changings - fixes

tried to fix the erasing, new functionality