Optimize sprite