recognize shapes from image