Enable attributes inside image references

Fixes #181