Correct docs about images array.
Replace arrays with dictionaries.

This makes the code much easier to read and verify.