modifications to color handling

should be faster too now because rgba values are cached now