fixing multithreading issue button images