Removed duplicated code from swt image (slipped through my hands)