Ensuring image optimisation overwrites source.