added support for opacity and scale