Refactoring started. Usage of Image class started. No more huge images in event queue.