Only process valid images, and increase queue length.
Parameterize n_queue_images.