PHP Library using gd to see if an image exists inside another image