So I created a checkbutton with custom images and they work just fine. But there is always a white flash over the checkbutton when clicking it. This is the relevant code: