Update rand_img.psgi

Rewrote list slice in scalar context to scalar access. No functional change, but probably easier for a novice to understand.