Clear image style cache after replacing file
Uploading a new file when using the "Replace existing file" feature causes the initial file to be uploaded with the status of permanent. However, after replacing the file again with an identically named file it changes the file status to temporary in the file_manged table. If you repeat this process again it changes it back to permanent and then temporary and continuing the cycle.