created function to change picture color
script is nearly doing the right thing