Extracting numerical data from images