Ring Buffer: overloaded the subscript ([]) operator.

This operator allows safe access to images stored in the ring buffer.