Animal detection using image processing