Remove libmagick dependency from debian package.
Refactor embedding.