Revert "Revert "Magick import fix""

This reverts commit 11af83f1c742878e58c619d89d4f780cfb7ace56.