Extracted method for loading depth photo.