Replace img src inside a 'this' object?

Replace img src inside a 'this' object?

Alright so I have a link that is clicked...once it is clicked I want the img src that's within the 'a' attribute to be changed. Here is what I have

HTML:

  1. <td>
  2.  <href='#' class='flag' name='$files[id]' >
  3.   <img src='www.somesite.com/images/unflagged.png' class='flagimg' />
  4.  </a>
  5. </td>


jQuery:

  1. $(".flag").on("click", function(e){
  2. var fileID = $(this).attr("name");
  3.         var src = 'www.somesite.com/images/flagged.png';
  4.         $(this).find(".flagimg").attr("src", src);  
  5.         return false;
  6.     });

I know it works because when I use 
  1. $('.flagimg').attr("src", src);
it works...but it changes all of my images with the class 'flagimg'. I want it to change the one that was clicked and that's it.