Detects collisions of images using blocktree arrays