Fix image gallery and folder listing asset embedding