Better invalidate function
Invalidate sprites