resolve twin image flickering