Solved some painting problems that could probably have been better solved procedurally.