background thread image handling