Update rand_img.psgi

Rewrote list slice in scalar context to scalar access. No functional change, but probably easier for a novice to understand.
Merge pull request #6 from chromatic/patch-2

Update rand_img.psgi