hopefully fixing the flashing picture problem