made a getlocationFromimage method