added initial code to get grayscale frame data