Use asset instead of img for the dragonfly attribute on Image model.