Reduced overhead in main loop
More cosmetics, ctypes for image copy