RGB values should go from 0 to 255. Writing 256 might be causing the error. Also, the RGB in line 16 only has 2 parameters, when it should have 3.