updated part 5
moved conversion of rgb to 0..255 to svg processing function