Python Image Open Function Javascript Mdn Array Slice