Fixing color frame not refreshing dynamically while changing RGB colors