added camIndex to ImageStruct and changed to PriorityQueues in the Buffer