Improved Traffic Signal Detection and Classification via Image Processing Algorithms