Handle removing the src attribute from an img element