ENH: Finished conversion function for 2D detector image to 1D list of pixels