how do I isolate/crop a region of black pixels?