Fix folder listing and image gallery asset embedding