2418c6aca1
This commit changes the `addImageDimensionsImpl` method to reduce nesting. It will exit early, if the conditions are not matched. PR Close #37046