Add class ImageDimensionReducer

Add class ImageDimensionReducer to take in data and format it as well
as take in the dimensionality reduction model.