i found the answer to my own question , there is a difference between the way the browsers behave . As soon as the js removes the image from the DOM the chrome removes the image from cache but FF does not .
I solved it by setting the cache control on the server side so that i force the chrome to cache the image for some time .