resize image in background thread