added print debug
fixed image detect and find home base code