Fix #5044; add unit tests for img() HTML helper
4 files changed