Image fetch threading fixes and a small sample app fix