Implement ArrayAccess for class Image.