How to extract data/coordinates from graphs/images