Avoid painting the same hover image multiple times.