Updated to v1.2.1

Optimized code to process 'styles' array