Threading Problem

Changed thread A. The Same changes will have to be made with the rest of the threads.

I made a class named "TheBitmaps" which houses the target and generated bitmaps. Then i created a thread with a TheBitmaps object dispatcher, which allows you to get access to this object from the main thread.
Move threadA.start() to here