Fixes the issue with thumbnails of the already existing image in case of overriding on upload.