detect numbers from img files