added a thread safe image queue buffer.