fix image magick deprecations (Image.from_file and commands.format)