log errors and let image magick auto-detect type