I did some reading on preventDefault(), but I don't see why I would need it in my case. From the examples, they mostly use it on link tags. Maybe my understanding of it is wrong though.
I tried the above code.. but it doesn't seem to work, and yes I used the correct path to the image.