updating image, nn, cutorch, cunn