reads in image frames