Added configuration option to use ImageMagick