Remove const at the index paramenter in image.h and modify comment