Added support for sprite center alignment