fixed indexing of images in renderSystem