commented code and fixed wrongly generated rgb colour string for pixel background colour