transforms and sprites optimizations