read in image and exposure data with this function