diff --git a/pom.xml b/pom.xml
index b5b381e2a..b50d2aeba 100644
--- a/pom.xml
+++ b/pom.xml
@@ -49,6 +49,11 @@
1.3.4
compile
+
+ org.apache.commons
+ commons-lang3
+ provided
+
diff --git a/src/main/java/org/openstreetmap/josm/plugins/mapillary/utils/ImageMetaDataUtil.java b/src/main/java/org/openstreetmap/josm/plugins/mapillary/utils/ImageMetaDataUtil.java
index 6478f388d..3dfd62339 100644
--- a/src/main/java/org/openstreetmap/josm/plugins/mapillary/utils/ImageMetaDataUtil.java
+++ b/src/main/java/org/openstreetmap/josm/plugins/mapillary/utils/ImageMetaDataUtil.java
@@ -10,7 +10,6 @@
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.ParserConfigurationException;
-import org.apache.commons.imaging.ImageReadException;
import org.apache.commons.imaging.Imaging;
import org.openstreetmap.josm.tools.Logging;
import org.openstreetmap.josm.tools.XmlUtils;
@@ -53,7 +52,7 @@ public static boolean isPanorama(final InputStream is) {
boolean pano = false;
try {
pano = checkXmpProjectionType(Imaging.getXmpXml(is, null), "equirectangular");
- } catch (ImageReadException | IOException ex) {
+ } catch (IOException ex) {
Logging.trace(ex);
}
return pano;