Hi @leonardotessaro
What do you mean by “but when i update any image in library the code:”
It is most likely that you need to regenerate your thumbnails (cropped sizes)
Please download a plugin called ‘regenerate thumbnails’ and run this tool
Thanks
E