update the time out of picture queue-up
add border check
add picture merge logic