Well it seems i found the reason why. For starters I dropped
the whole listener thing.
What I was trying to accomplish was to select an image that
was associated with the button number so say "image_1" has
"button_1". So what i wanted was that when i clicked "button_1" it
would send the number to the showImage() function.
NOTE: I found out after a few hours that I could not just add
the x variable to the function as in...