added tests for imageAlt, fixed bugs in the rule