fix problem of adding public images mixin