Improved performance by using int instead of Color