Improved validation and started ImageSet class