More image util functions; barebones arrow detection test.