Improved performance of _get_color_value method in AdvancedImageGenerator class