Update 3D transforms

"Compiled" transform styles into matrix3d styles so that scaling
shouldn't occur when 3d isn't enabled.