NullPointerException in ImageMetadataComponentGenerator fixed