API Reference
If frames is not iterable (i.e it’s a single number) we create an array with the single frame