added use_depth and camera arguments