fix a-img problem. Fixes #2