Implemented the idea of using cartesian product for applying styles to source images.