Fixing RGB Tint Rounding

Previously it was not rounding as expected. Now it rounds correctly and also clamps it to 255 (since rounding may introduce higher values).