[WIP] selective search window proposals and better batching of images

Work in progress, do not merge.