image alignment in background thread