There is nothing you have done wrong code or id wise.
The problem is I just realised you are talking about an image.
Images are normally flat so changing the colour requires either a image change, some transparency, so back ground comes through, an overlay which changes colour or colour manipulation like hue…
hmm.
Which I see I already gave you an example of image swap a short while back and you have used in your latest question…