Add index method and use img id/names/src. Closes GH-3.