Improved ImageMagick conversion. Logger added.