Updated imagemin to replace original images rather than duplicate them