improve sprite support