Added Math.round for double RGB values