Refactored paint, erase and textComponent. Now the same class for all.