check if format is supported before setting magick