Enhanced sync algorithm so that missing pictures don't stuck queues