Update ImageDimenionReducer class and test

Update ImageDimensionReducer to take in a folder path. Update test
file accordingly.