Added a find_pixel function which currently works very slowly