Altered movieToArray to return 1d array