code for importing image file and creating numpy array with greyscale data