BUG: allimg should be aalimg