extract_representation_cpu refactoring

@nitishsrivastava,

I refactored extract_representation_cpu also to use RawImageFileIterator and removed dependency from  CImg.