fixed image button not repainting