I'm trying to make a wordpress plugin to generate compressed images 
and i need to know what's the hook or action i can use to replace 
image url with the compressed one when calling wp\_get\_attachment\_image ,without the need to change them in database 
any ideas ??
thank you