remove the need for opencv, improves performance