Show more information
Fixed wrong index to images to ReleaseAccess

The system crashed occasionally because wrong index was given.
images[0]->ReleaseAccess(&depth_data);
       ^ must be 1, because depth_data is obtained as images[1]->AcquireAccess
In process to solve this issue, I added error check.