Modify buildAssetsPath method to support external image